package com.pay.cloud;

import android.view.KeyEvent;

public enum KeyInfo {
    KEY_NUM_0(KeyEvent.KEYCODE_0, "数字0", "0"),
    KEY_NUM_1(KeyEvent.KEYCODE_1, "数字1", "1"),
    KEY_NUM_2(KeyEvent.KEYCODE_2, "数字2", "2"),
    KEY_NUM_3(KeyEvent.KEYCODE_3, "数字3", "3"),
    KEY_NUM_4(KeyEvent.KEYCODE_4, "数字4", "4"),
    KEY_NUM_5(KeyEvent.KEYCODE_5, "数字5", "5"),
    KEY_NUM_6(KeyEvent.KEYCODE_6, "数字6", "6"),
    KEY_NUM_7(KeyEvent.KEYCODE_7, "数字7", "7"),
    KEY_NUM_8(KeyEvent.KEYCODE_8, "数字8", "8"),
    KEY_NUM_9(KeyEvent.KEYCODE_9, "数字9", "9"),
    KEY_DOT(KeyEvent.KEYCODE_PERIOD, "小数点", "."),
    KEY_ADD(KeyEvent.KEYCODE_NUMPAD_ADD, "加号", "+"),
    KEY_ENTER(KeyEvent.KEYCODE_ENTER, "确定"),
    KEY_CANCEL(KeyEvent.KEYCODE_F2, "取消"),
    KEY_UP(KeyEvent.KEYCODE_DPAD_UP, "向上"),
    KEY_DOWN(KeyEvent.KEYCODE_NUMPAD_MULTIPLY, "向下"),
    KEY_MENU(KeyEvent.KEYCODE_MENU, "菜单"),
    KEY_SEARCH(KeyEvent.KEYCODE_F1, "统计"),
    KEY_DELETE(KeyEvent.KEYCODE_DEL, "删除");

    private int code;
    private String name;
    private String value;
    KeyInfo(int code, String name) {
        this.code = code;
        this.name = name;
    }

    KeyInfo(int code, String name, String value) {
        this.code = code;
        this.name = name;
        this.value = value;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public String getValue() {
        return value;
    }


}
